
double* sum_Matrix(double *mtx1, double *mtx2, int weight, int height)
{
	double* res = new double[ weight * height ];

	for( int n = 0; n < weight* height; n++)
	{
		double buf = 0;
		int str = n / weight;
		int stolb = n % weight;

		for( int i = 0; i < weight; i++ )
		{

		 buf += mtx1[str* height + i] * mtx2[i* height + stolb];

		}

		res[n] = buf;
	}

	return res;
}